using UnityEngine;
using Verse;

namespace RimWorld;

public class Thought_SharedBed : Thought_Situational
{
	protected override float BaseMoodOffset
	{
		get
		{
			Pawn mostDislikedNonPartnerBedOwner = LovePartnerRelationUtility.GetMostDislikedNonPartnerBedOwner(pawn);
			if (mostDislikedNonPartnerBedOwner == null)
			{
				return 0f;
			}
			return Mathf.Min(0.05f * (float)pawn.relations.OpinionOf(mostDislikedNonPartnerBedOwner) - 5f, 0f);
		}
	}
}
